﻿@model EShop.Models.Goods

@{
    ViewBag.Title = "详情";
}

<h3>商品: @Model.Name</h3>

<p>
    <img alt="@Model.Name" src="@Model.GoodsUrl" />
</p>

<div id="goods-details">
    <p>
        <em>类型:</em>
        @Model.Genre.Name
    </p>
    <p>
        <em>品牌:</em>
        @Model.brand.Name
    </p>
    <p>
        <em>价格:</em>
        @String.Format("{0:F}", Model.Price)
    </p>
    <p class="button">
        @Html.ActionLink("加入购物车", "AddToCart", 
        "ShoppingCart", new { id = Model.GoodsId }, "")
    </p>
</div>